package com.baizhi.action;

import com.baizhi.entity.User;
import com.baizhi.service.UserService;

import java.util.List;

public class UserAction {
    private List<User> list;
    private UserService userService;
    public String selectAll(){
        list = userService.selectAll();
        return "success";
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public List<User> getList() {
        return list;
    }

    public void setList(List<User> list) {
        this.list = list;
    }
}
